package org.lcc.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class Exam {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer examId;// 考试ID
    private String examName; // 考试名称
    private String subject; // 考试科目
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime; // 开始时间
    private Integer duration; // 考试时长（分钟）
    private Integer totalScore; // 试卷总分
    private String teacherId; // 创建教师ID
    private String status; // 考试状态
    private LocalDateTime createTime; // 创建时间
}
